package cloud.provider.payment.controller;

import cn.hutool.core.util.IdUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @auther xfanonymous
 * @create 2023-12-28 16:08
 *
 * 服务端 MicrometerTracing + ZipKin 分布式链路追踪
 */
@RestController
public class PayMicrometerController
{
    @GetMapping(value = "/pay/micrometer/{id}")
    public String myMicrometer(@PathVariable("id") Integer id)
    {
        return "Hello, 欢迎到来myMicrometer inputId:  "+id+" \t  服务返回:" + IdUtil.simpleUUID();
    }
}
